| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

InputCodes.h
1 // InputCodes.h
3 //
5
6 namespace nkWinUi
7 {
11 enum class MOUSE_BUTTON
12 {
13 MOUSE_LEFT = 0x0001,
14 MOUSE_MIDDLE = 0x0010,
15 MOUSE_RIGHT = 0x0002,
16 MOUSE_X1 = 0x0020,
17 MOUSE_X2 = 0x0040
18 } ;
19
25 enum class KEY_CODE
26 {
27 KEY_UNKNOWN = 0,
28 KEY_BACKSPACE = 0x08,
29 KEY_TAB,
30 // ...
31 // Undefined codes
32 // ...
33 KEY_CLEAR = 0x0C,
34 KEY_RETURN,
35 // ...
36 // Undefined codes
37 // ...
38 KEY_SHIFT = 0x10,
39 KEY_CONTROL,
40 KEY_MENU,
41 KEY_PAUSE,
42 KEY_CAPITAL,
43 KEY_KANA,
44 // ...
45 // Language key extended codes
46 // ...
47 KEY_KANJI = 0x19,
48 // ...
49 // Undefined codes
50 // ...
51 KEY_ESCAPE = 0x1B,
52 // ...
53 // IME codes
54 // ...
55 KEY_SPACE = 0x20,
56 KEY_UP_PAGE,
57 KEY_DOWN_PAGE,
58 KEY_END,
59 KEY_HOME,
60 KEY_LEFT,
61 KEY_UP,
62 KEY_RIGHT,
63 KEY_DOWN,
64 KEY_SELECT,
65 KEY_PRINT,
66 KEY_EXEC,
67 KEY_PRINT_SCREEN,
68 KEY_INSERT,
69 KEY_DEL,
70 KEY_HELP,
71 KEY_0,
72 KEY_1,
73 KEY_2,
74 KEY_3,
75 KEY_4,
76 KEY_5,
77 KEY_6,
78 KEY_7,
79 KEY_8,
80 KEY_9,
81 // ...
82 // Undefined codes
83 // ...
84 KEY_A = 0x41,
85 KEY_B,
86 KEY_C,
87 KEY_D,
88 KEY_E,
89 KEY_F,
90 KEY_G,
91 KEY_H,
92 KEY_I,
93 KEY_J,
94 KEY_K,
95 KEY_L,
96 KEY_M,
97 KEY_N,
98 KEY_O,
99 KEY_P,
100 KEY_Q,
101 KEY_R,
102 KEY_S,
103 KEY_T,
104 KEY_U,
105 KEY_V,
106 KEY_W,
107 KEY_X,
108 KEY_Y,
109 KEY_Z,
110 KEY_LEFT_WINDOWS,
111 KEY_RIGHT_WINDOWS,
112 KEY_APPS,
113 // ...
114 // Undefined codes
115 // ...
116 KEY_SLEEP = 0x5F,
117 KEY_0_NUMPAD,
118 KEY_1_NUMPAD,
119 KEY_2_NUMPAD,
120 KEY_3_NUMPAD,
121 KEY_4_NUMPAD,
122 KEY_5_NUMPAD,
123 KEY_6_NUMPAD,
124 KEY_7_NUMPAD,
125 KEY_8_NUMPAD,
126 KEY_9_NUMPAD,
127 KEY_MULT,
128 KEY_ADD,
129 KEY_SEPARATOR,
130 KEY_SUBSTRACT,
131 KEY_DECIMAL,
132 KEY_DIVIDE,
133 KEY_F1
134 } ;
135 }
nkWinUi::KEY_CODE::KEY_BACKSPACE
@ KEY_BACKSPACE
Backspace (erase) key.
nkWinUi::MOUSE_BUTTON::MOUSE_X2
@ MOUSE_X2
Mouse x2 button. Often taken as "next" button.
nkWinUi::KEY_CODE
KEY_CODE
A key code identifier.
Definition: InputCodes.h:26
nkWinUi::KEY_CODE::KEY_UNKNOWN
@ KEY_UNKNOWN
Unknown place holder. Unseen in Microsoft API.
nkWinUi::MOUSE_BUTTON::MOUSE_X1
@ MOUSE_X1
Mouse x1 button. Often taken as "previous" button.
nkWinUi::MOUSE_BUTTON
MOUSE_BUTTON
A mouse button identifier.
Definition: InputCodes.h:12
nkWinUi::MOUSE_BUTTON::MOUSE_RIGHT
@ MOUSE_RIGHT
Right mouse button.
nkWinUi::MOUSE_BUTTON::MOUSE_LEFT
@ MOUSE_LEFT
Left mouse button.
nkWinUi::MOUSE_BUTTON::MOUSE_MIDDLE
@ MOUSE_MIDDLE
Middle mouse button.
nkWinUi
Encompasses all API of component NilkinsWinUi.
Definition: Clipboard.h:7
nkWinUi::KEY_CODE::KEY_RETURN
@ KEY_RETURN
Return (enter) key.